package q;

import p.Sample;

public class Dsample2 extends Sample{

	
	public Dsample2()
	{
		Sample smpl = new Sample();
		//this is not accessible s we are using object instance to call protected method
		//s.m3()
		
		// this is accessible as we are inheritance to access protected method
		//we cannot access default method m2() as we are not in the same package
		//point to be noted protected method are accessed out the package using inheritance 
		//but not instance of a object
		m3();
	}
}
